﻿using SoonCode.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SoonCode.FocusTest.Models
{
    public class MemberInfo
    {
        public string channelId { get; set; }
        public string channel { get; set; }
        public string id { get; set; }
        public int index { get; set; }
        public string member_no { get; set; }
        public string name { get; set; }
        public string sex { get; set; }
        public string showAge { get; set; }
        public int age { get; set; }
        public string birth { get; set; }
        public string parent_name { get; set; }
        public string phone { get; set; }
        public string statusId { get; set; }
        public string member_status { get; set; }
        public string salesPerson { get; set; }
        public string notes { get; set; }
        public long courseHours { get; set; }
        public long remainHours { get; set; }
        public String createDate { get; set; }
        public double money { get; set; }
        public string classId { get; set; }
        public string className { get; set; }
        public string classYear { get; set; }

        public string displayClass
        {
            get { return classYear.IsNullOrEmpty() ? className : $"{className}({classYear})"; }
        }

        //保存评测到哪一项
        public int testItem { get; set; }

    }
}
